package org.example.carplatoon.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.carplatoon.entity.carBind;
import org.example.carplatoon.mapper.carBindMapper;
import org.example.carplatoon.service.carBindService;
import org.springframework.stereotype.Service;

@Service
public class carBindServiceImpl extends ServiceImpl<carBindMapper, carBind> implements carBindService {
    /**
     * 返回正在运行中的车队总数
     * @return
     */
    @Override
    public Integer sumOfRunningCar() {
        return this.count();
    }
}
